<html>
<head>
<title>check user</title>
</head>
<body>
<?php
if ( isset($_GET['u']) ) {
	$userexists = file_get_contents('http://scratch.mit.edu/users/'.$_GET['u'] );
	if ( $userexists ) {
?>

<script language="javascript">
	parent.userValidated();
</script>	

<?php } else { ?>

<script language="javascript">
	parent.userNotRecognized();
</script>

<?php
	}
}
?>
</body>
</html>